package com.platform.dao;

import com.platform.entity.AgentVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品对应规格表值表Dao
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2018-10-07 20:51:28
 */
public interface ApiAgentMapper extends BaseDao<AgentVo> {

    int checkAgentApply(@Param("vendorRootDeptId") Long vendorRootDeptId, @Param("agentRootDeptId") Long agentRootDeptId);

    int checkVendorUser(@Param("vendorRootDeptId") Long vendorRootDeptId, @Param("applyUserId") Long applyUserId);

    List<AgentVo> getAgentApplyByVendorAndAgent(@Param("vendorRootDeptId") Long vendorRootDeptId, @Param("agentRootDeptId") Long agentRootDeptId);

}
